<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8" />
        <title>Admin Template by www.865171.cn</title>
        <meta name="description" content="Administry - Admin Template by www.865171.cn" />
        <meta name="keywords" content="Admin,Template" />
        <link rel="shortcut icon" type="image/png" href="file/css/images/logo1.png"/>
        <link rel="icon" type="image/png" href="file/css/images/logo1.png"/>
        <link rel="apple-touch-icon" href="file/css/images/apple.png" />
        <!-- Main Stylesheet --> 
        <link rel="stylesheet" href="file/css/style.css" type="text/css" /> 
        <link rel="stylesheet" href="css/custom.css" type="text/css" />
    </head>
    <body>
        <!-- Header -->
        <header id="top">
            <div class="wrapper">
                <!-- Title/Logo - can use text instead of image -->
                <div id="title">尚源信息技术<!--<img SRC="file/css/images/logo.png" alt="尚源信息技术" />--><!--<span>Administry</span> demo--></div>
                <!-- Top navigation -->
                <div id="topnav">
                    <a href="#"><img class="avatar" SRC="file/css/images/user_32.png" alt="" /></a>
				Logged in as <b>Admin</b>
                    <span>|</span> <a href="#">设置</a>
                    <?php
                    if (isset($_SESSION['Uname'])) {
                        if (empty($_SESSION['Uname'])) {
                            ?>
                            <span>|</span> <a href="index.php?con=index&act=login">登录</a>

                            <?php
                        } else {
                            ?>
                            <span>|</span> <a href="#">退出</a><br />
                            <?php
                        }
                    } else {
                        ?>
                        <span>|</span> <a href="index.php?con=index&act=login">登录</a> 
                        <?php
                    }
                    ?>

                </div>
                <!-- End of Top navigation -->

            </div>
        </header>
        <!-- End of Header -->
        <!-- Page title -->
        <div id="pagetitle">
            <div class="wrapper">
                <h1>
<?php
if (isset($_SESSION['Uname'])) {
    if ('' == $_SESSION['Uname']) {
        echo "请登录";
    } else {
        echo $_SESSION['Uname'];
    }
}
?>
                </h1>
                <p class="msg"><span>上次登录时间：</span>2012-32-21</p>
                <!-- Quick search box -->
				<p class="dig"><a href="index.php?con=userdig&act=run">用户数据挖掘</a></p>

            </div>
        </div>
        <!-- End of Page title -->

        <!-- Page content -->
        <div id="page">
            <!-- Wrapper -->
            <div class="wrapper">
                <!-- Left column/section -->
                <section class="width6">
                    <!--left contain-top-->

                    <div class="box box-info">
							<div  class="dig_info">
                                                           
								<p class="title_name">时间： </p>
								<form method="post" name="form1" action="index.php?con=UserCollect&act=userCollect"> 
								<p class="search_time">
                                                                    
							   <input type="text"  name="begintime"/><span>到</span>
							   <input type="text" name="endtime" /><span>产品：</span>
                                                                    <select name="productName">
                                                                        <?php 
                                                                        if(isset($userProduct)){

                                                                            foreach($userProduct as $key =>$value ){
                                                                                ?>
                                                                             <option><?php echo $value['PName'];   ?></option>   
                                                                              <?php    
                                                                            }            
                                                                        }
                                                                        ?>
                                                                       
                                                                    </select>
                                                                 </p>
								<p class="submit"><input type="submit" name="sub" value="查询"/></p>
								</form>
							</div>

                           
    	
                    </div>
                  
                   <div class="pro_Push">
                       <p>用户筛选的结果为：</p>
				   		 <ul>
                                                     <?php  
                                                     if( isset($userInfo) ){
                                                         if(!empty($userInfo)){
                                                             foreach( $userInfo as $key =>$value ){
                                                             ?>
                                                             <li><?php echo $value['UName']; ?>    </li>
                                                             <?php
                                                             }  
                                                         }else{
                                                             echo "没有结果";
                                                         }
                                                         
                                                     }
                                                     else{
                                                         echo "没有结果";
                                                     }
                                                     ?>
						 	
						 </ul>

				   </div>
                   
                </section>
                <!-- End of Left column/section -->

            </div>
            <!-- End of Wrapper -->
        </div>
        <!-- End of Page content -->

        <!-- Page footer -->
        <footer id="bottom">
            <div class="wrapper">
                <nav>
                    <a href="#">Dashboard</a> &middot;
                    <a href="#">Content</a> &middot;
                    <a href="#">Reports</a> &middot;
                    <a href="#">Users</a> &middot;
                    <a href="#">Media</a> &middot;
                    <a href="#">Events</a> &middot;
                    <a href="#">Newsletter</a> &middot;
                    <a href="#">Settings</a>
                </nav>
                <p>Copyright &copy; 2010 <b><a HREF="http://www.865171.cn" title="www.865171.cn">shangyuan365.com</a></b> | Icons by <a HREF="http://www.865171.cn">865171.cn</a></p>
            </div>
        </footer>
        <!-- End of Page footer -->

        <!-- Scroll to top link -->


        <!-- Admin template javascript load -->
    </body>
</html>
